home *** CD-ROM | disk | FTP | other *** search
Wrap
<html> <head> <LINK REL="stylesheet" TYPE="text/css" HREF="%6css/default.css"> <script language="Javascript"> //LOCALIZATION STRINGS var _strAddConfirm = "You have chosen to add an alias that belongs to an existing Enterprise user. Do you want to continue?"; var _strLastAlias = "You have chosen to reassign the only alias of another user. This action will remove that user and its associated home folder from the system. Do you want to continue?"; var _strConfirmContinue = "If you continue, the changes you have made will not be applied. Do you wish to continue?"; var _errNoAlias = "You cannot submit this form until 1 or more aliases have been selected"; </script> <SCRIPT LANGUAGE="JavaScript"> function init() { // Remove the formatting options document.object_prop.targets.options[0] = null; document.object_prop.choices.options[0] = null; } function OnSubmit() { if (!modifyValues()) return; document.forms[0].submit(); } function OnCancel() { window.parent.location = "%7"; } function addTarget() { for (count = 0; count < document.object_prop.choices.options.length; ++count) { current_target = document.object_prop.choices.options[count]; if (current_target.selected) { current_target = document.object_prop.choices[count]; option = new Option(current_target.text, current_target.value, false, false); document.object_prop.targets.options[document.object_prop.targets.options.length] = option; } } for (count = document.object_prop.choices.options.length -1; count >= 0; --count) { current_target = document.object_prop.choices.options[count]; if (current_target.selected) { document.object_prop.choices.options[count] = null; } } } function addAllTargets() { // Run through the options and remove the current selections for (count = 0; count < document.object_prop.choices.options.length; ++count) { current_target = document.object_prop.choices.options[count]; // remove the object from the current targets target_name = current_target.text; target_id = current_target.value; // Create a new option option = new Option(target_name, target_id, false, false); // add it to the possible targets document.object_prop.targets.options[document.object_prop.targets.options.length] = option } document.object_prop.choices.length = 0; } function deleteTarget() { // Remove a specific target // Run through the options and remove the current selections for (count = 0; count < document.object_prop.targets.options.length; ++count) { current_target = document.object_prop.targets.options[count]; if (current_target.selected) { // remove the object from the current targets target_name = current_target.text; target_id = current_target.value; // Create a new option option = new Option(target_name, target_id, false, false); // add it to the possible options document.object_prop.choices.options[document.object_prop.choices.options.length] = option; } } for (count = document.object_prop.targets.options.length -1; count >= 0; --count) { current_target = document.object_prop.targets.options[count]; if (current_target.selected) { document.object_prop.targets.options[count] = null; } } } function deleteAllTargets() { // Run through the options and remove the current selections for (count = 0; count < document.object_prop.targets.options.length; ++count) { current_target = document.object_prop.targets.options[count]; // remove the object from the current targets target_name = current_target.text; target_id = current_target.value; // Create a new option option = new Option(target_name, target_id, false, false); // add it to the possible targets document.object_prop.choices.options[document.object_prop.choices.options.length] = option } document.object_prop.targets.options.length = 0; } function modifyValues() { final_value = ""; first = true; old_info = false; last_nt_alias = false; if (document.object_prop.targets.options.length == 0) { alert(_errNoAlias); return false; } for (count = 0; count < document.object_prop.targets.options.length; ++count) { if (!first) { final_value += "+"; } else first = false; current_target = document.object_prop.targets.options[count]; temp_value = current_target.value; if (temp_value.charAt(0) == '*') { final_value += temp_value.substring(1); old_info = true; } else if (temp_value.charAt(0) == '%') { final_value += temp_value.substring(1); last_nt_alias = true; } else final_value += current_target.value; } if (old_info) { if (!confirm(_strAddConfirm)) { return false; } } if (last_nt_alias) { if (!confirm(_strLastAlias)) { return false; } } // Build the string document.object_prop.selectedChoices.value = final_value; return true; } function doFilter() { if (NoItemsSelectedOrDoNotCare()) { url = "%9" + escape(document.object_prop.filter.value); location.href = url; } } function doPrevious() { if (NoItemsSelectedOrDoNotCare()) { url = "%11"; location.href = url; } } function doNext() { if (NoItemsSelectedOrDoNotCare()) { url = "%12"; location.href = url; } } function NoItemsSelectedOrDoNotCare() { if (document.object_prop.targets.options.length == 0) return true; else return window.confirm (_strConfirmContinue) } </SCRIPT> <BODY onload="init();"> <FORM action="%2" target="_parent" method="post" name="object_prop" onSubmit="return modifyValues()"> <div align="center"> <strong> %3 </strong> </div> <BR> <BR> <table CELLPADDING="0" CELLSPACING="2" border=0> <tr> <td class="list" align> Look For: <input type="text" name="filter" value="%8" size=15> </td> <td align="left" colspan=2> <table> <tr> <td><table cellpadding=0><tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"> <A HREF="javascript:doFilter()">Find Now</A> </div> </td></tr></table> </td> </tr> </table> </td> </tr> </table> <BR> <div align="center"> <table align=center CELLPADDING="0" CELLSPACING="0" border=0 width=100%> <tr> <td class="list" colspan=2 align=left> %4 </td> <td class="list" align=left> %5 </td> </tr> <tr> <td class="list" align=left> <SELECT multiple NAME="choices" SIZE=10 width="200px"> <OPTION> This is a formatting string </OPTION> %1 </SELECT> </td> <td> <table> <tr><td align=middle> <table cellpadding=0 border=0 align=center> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:addTarget()"> > </a></div> </td> </tr> </table> </td></tr> <tr><td align=middle> <table cellpadding=0 border=0 align=center> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:addAllTargets()"> >> </a></div> </td> </tr> </table> </td></tr> <tr><td align=middle> <table cellpadding=0 border=0 align=center> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:deleteTarget()"> < </a></div> </td> </tr> </table> </td></tr> <tr><td align=middle> <table cellpadding=0 border=0 align=center> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:deleteAllTargets()"> << </a></div> </td> </tr> </table> </td></tr> </table> </td> <td class="list" align=left> <SELECT multiple NAME="targets" SIZE=10 width="200px"> <OPTION> This is a formatting string </OPTION> </SELECT> </td> </tr> <tr> <td> %10 </td> </tr> </table> <BR> <table align=center CELLPADDING="0" CELLSPACING="5" border=0> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:OnSubmit()">OK</a></div> </td> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:OnCancel()">Cancel</a></div> </td> <tr> </table> <input type=hidden name="selectedChoices" value = ""> </FORM> </div> </body> </html>